package pingan.com.quarter_hour.acyivity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.Toast;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import pingan.com.quarter_hour.R;
import pingan.com.quarter_hour.acyivity.login.WriteJokeActivity;

public class EditorActivity extends AppCompatActivity {

    @BindView(R.id.video)
    LinearLayout video;
    @BindView(R.id.duanzi)
    LinearLayout duanzi;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_editor);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.video, R.id.duanzi})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.video:
                Toast.makeText(EditorActivity.this,"视频",Toast.LENGTH_SHORT).show();
                finish();
                break;
            case R.id.duanzi:
                Intent intent = new Intent(EditorActivity.this, WriteJokeActivity.class);
                startActivity(intent);
                finish();
                break;
        }
    }
}
